# coding: utf-8
from . import db, BaseModel


class Word(db.Model):
    __tablename__ = 'word'

    auto_id = db.Column(db.Integer, primary_key=True)
    word_id = db.Column(db.Integer, info='单词id')
    word_name = db.Column(db.String(255, 'utf8mb4_general_ci'), info='单词')
    word_paraphrase = db.Column(db.String(255, 'utf8mb4_0900_ai_ci'), info='单词释义')
    word_soundmark = db.Column(db.String(255, 'utf8mb4_general_ci'), info='单词音标')
    word_pronounce = db.Column(db.String(255, 'utf8mb4_general_ci'), info='单词发音')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='更新记录时间')
